using System;
using System.ComponentModel.DataAnnotations;
using WalkingTec.Mvvm.Core;

namespace HengTong.Model.Db.SupplyChain.Material.Bill;

[Display(Name = "物料变更申请单", Description = "物料信息变更申请单", GroupName = "供应链")]
public class SysMaterialChangeRequestBill : BaseBill
{
    [Display(Name = "物料", Description = "关联的物料实体", GroupName = "物料信息")]
    public SysMaterial Material { get; set; }

    [Display(Name = "物料ID", Description = "关联物料主键", GroupName = "物料信息")]
    public Guid? MaterialId { get; set; }

    [Required]
    [Display(Name = "变更原因", Description = "物料变更的原因", GroupName = "物料信息")]
    [StringLength(1024)] 
    public string ChangeReason { get; set; }
    
    [Display(Name = "附件", Description = "相关变更附件", GroupName = "物料信息")]
    public FileAttachment Attachment { get; set; }
    
    [Display(Name = "附件ID", Description = "相关变更附件", GroupName = "物料信息")]
    public Guid? AttachmentId { get; set; }
}